GET_OP_SIZE_FOR_NONEBYTE(instr->op_size);
return reg_mem(instr->op_size, opcode, instr, rex);
+ case 0x3A: /* cmp r8, r8/m8 */
+ instr->instr = INSTR_CMP;
+ GET_OP_SIZE_FOR_BYTE(instr->op_size);
+ return reg_mem(instr->op_size, opcode, instr, rex);
+
case 0x3B: /* cmp m32/16, r32/16 */
instr->instr = INSTR_CMP;
GET_OP_SIZE_FOR_NONEBYTE(instr->op_size);
GET_OP_SIZE_FOR_BYTE(size_reg);
return mem_reg(size_reg, opcode, instr, rex);
+ case 0x85: /* text m16/32, r16/32 */
+ instr->instr = INSTR_TEST;
+ GET_OP_SIZE_FOR_NONEBYTE(instr->op_size);
+ return mem_reg(instr->op_size, opcode, instr, rex);
+
case 0x87: /* xchg {r/m16|r/m32}, {m/r16|m/r32} */
instr->instr = INSTR_XCHG;
GET_OP_SIZE_FOR_NONEBYTE(instr->op_size);